home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch31 / 31fig07.wrl < prev    next >
Text File  |  1996-09-23  |  740b  |  31 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. EXTERNPROTO Donut [
  6.     field    SFFloat crossSectionRadius
  7.     field    SFFloat spineRadius
  8.     field    SFInt32 crossSectionResolution
  9.     field    SFInt32 spineResolution
  10.     eventIn  SFFloat set_crossSectionRadius
  11.     eventIn  SFFloat set_spineRadius
  12.     eventOut MFVec2f crossSection_changed
  13.     eventOut MFVec3f spine_changed
  14. ] "donutpro.wrl#Donut"
  15.  
  16. EXTERNPROTO LightOak [
  17.     exposedField SFNode textureTransform
  18. ] "applib.wrl#LightOak"
  19.  
  20. Shape {
  21.     appearance LightOak {
  22.         textureTransform TextureTransform {
  23.             translation 0.5 0.0
  24.         }
  25.     }
  26.     geometry Donut {
  27.         crossSectionRadius 1.0
  28.         spineRadius        2.0
  29.     }
  30. }
  31.